*{padding: 0;margin: 0;}
.container{
    width: 800px;
    height: 600px;
    /* border: solid 1px #333; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}
.container footer{
    height: 50px;
    display: flex;
    margin-top: 10px;
    /* border-top: solid 1px #333; */
}

.container footer .left{
    flex: 1;
}
.container footer .right{
    width: 120px;
    margin-left: 10px;
}
.container main{
    flex: 1;
    border: solid 1px #999;
    border-radius: 20px;
    overflow-y: scroll;
    transition: all .4s ease;
}
main .wrapper{
    height: 540px;
    box-sizing: border-box;
    padding: 10px;
   
}
input{
    width: 100%;height: 100%;
    border: none;
    outline: none;
    box-sizing: border-box;
    padding: 10px;
    font-size: 20px;
    color: #333;
    border: solid 1px #333;
    border-radius: 50px;
}
button{
    width: 100%;
    height: 100%;
    border: none;
    background-color: blue;
    color: #fff;
    font-size: 24px;
    border-radius: 50px;
}

/* 消息框样式 */
.message-item{
    /* border:solid 1px red; */
    margin-bottom: 10px;
}

.msg-right{
    text-align: right;
}
.msg-right .message-name{
    margin-right: 10px;
}
.msg-right .message-text{
    max-width: 778px;
    background-color: blue;
    color: #fff;
    border-radius: 20px;
    border: none;
    border-top-right-radius: 0;
    margin-bottom: 10px;
}
.message-item .message-top{
    display: flex;
}
.message-item .message-bottom{
    margin-top: 10px;
}
.message-item .message-top .message-avatar{
    width: 40px;
    height: 40px;
    border-radius: 40px;
    overflow: hidden;
}
.message-avatar img{
    width: 100%;
    height: 100%;
}


.message-item .message-top .message-name{
    flex: 1;
    height: 40px;
    line-height: 40px;
    margin-left: 10px;
    color:#666;
    font-size: 12px;
}
.message-text{
    max-width: 778px;
    border: solid #999;
    color: #333;
    padding: 10px;
    display: inline-block;
    border-radius: 20px;
    border-top-left-radius:0;
    margin-bottom: 10px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
}

.hide{
    visibility: hidden;
}

.login-page{
   
    width: 450px;
    position: absolute;
    margin: auto;
    left:0;
    top:0;
    bottom:0;
    right: 0;
    display: flex;
    flex-direction: column;

}
.login-page h1{ 
    text-align: center;
    /* margin-bottom: 60px; */
    font-size: 80px;
    color:blue;
    margin-top: 100px;
}

.login-page .subtitle{
    font-size: 24px;
    text-align: center;
    color: #999;
    margin-top: 0;
}


.login-page .select-avatar{
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.login-page .nick-name{
    margin-top: 50px;
}
.nick-name  input{
    border: solid 1px #ccc;
}
input::placeholder{
    font-size: 16px;
    text-align: center;
}

.login-page .select-avatar img{
    width: 80px;
    height: 80px;
    border-radius: 40px;
    border: solid 1px #ccc;
}
#loginbtn{
    margin-top: 50px;
    height: 50px;
}


.login-page .select-avatar .selected{
    border: solid 3px blue;
}